package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 退款订单审核记录
 */
@Data
@TableName("t_supplier_order_refund_record")
public class SupplyOrderRefundRecordEntity implements Serializable {

    @TableId(value = "pk_recordId", type = IdType.AUTO)
    private long recordId;

    @TableField("r_refundRef")
    private long refundRef;//退货订单唯一编号

    @TableField("r_reason")
    private String reason;//退货原因

    @TableField("r_date")
    private LocalDateTime date = LocalDateTime.now();//退货日期

    @TableField("r_cause")
    private String cause;//审核未通过原因

    @TableField("r_verifyStatus")
    private int verifyStatus = 0;//审核状态0--待审核  1---审核通过 2 ----审核不通过

    @TableField("r_totalPrice")
    private double totalPrice;//退款总价格

    @TableField("r_verifyTime")
    private LocalDateTime verifyTime = LocalDateTime.now();//审核时间

    @TableField("r_verifyName")
    private String verifyName;//审核人

    @TableField(exist = false)
    private  SupplyRefundEntity supplyRefundEntity ;//审核记录对应的退货订单


}
